home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsICMSMessageErrors.idl < prev    next >
Text File  |  2006-05-08  |  6KB  |  122 lines

  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is Mozilla Communicator.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corp..
  19.  * Portions created by the Initial Developer are Copyright (C) 2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s): David Drinan <ddrinan@netscape.com>
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. #include "nsISupports.idl"
  39.  
  40. /**
  41.  * nsICMSMessageErrors
  42.  *  Scriptable error constants for nsICMSMessage
  43.  */
  44. [scriptable,uuid(f2aec680-60a0-49f0-afe5-6cf1d3f15e0d)]
  45. interface nsICMSMessageErrors : nsISupports
  46. {
  47.   const long SUCCESS = 0;
  48.   const long GENERAL_ERROR = 1;
  49.   const long VERIFY_NOT_SIGNED = 1024;
  50.   const long VERIFY_NO_CONTENT_INFO = 1025;
  51.   const long VERIFY_BAD_DIGEST = 1026;
  52.   const long VERIFY_NOCERT = 1028;
  53.   const long VERIFY_UNTRUSTED = 1029;
  54.   const long VERIFY_ERROR_UNVERIFIED = 1031;
  55.   const long VERIFY_ERROR_PROCESSING = 1032;
  56.   const long VERIFY_BAD_SIGNATURE = 1033;
  57.   const long VERIFY_DIGEST_MISMATCH = 1034;
  58.   const long VERIFY_UNKNOWN_ALGO = 1035;
  59.   const long VERIFY_UNSUPPORTED_ALGO = 1036;
  60.   const long VERIFY_MALFORMED_SIGNATURE = 1037;
  61.   const long VERIFY_HEADER_MISMATCH = 1038;
  62.   const long VERIFY_NOT_YET_ATTEMPTED = 1039;
  63.   const long VERIFY_CERT_WITHOUT_ADDRESS = 1040;
  64.  
  65.   const long ENCRYPT_NO_BULK_ALG = 1056;
  66. };
  67.  
  68. %{ C++
  69. /**
  70.  * CMS specific nsresult error codes
  71.  */
  72.  
  73. #define NS_ERROR_CMS_VERIFY_NOT_SIGNED \
  74.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  75.                             nsICMSMessageErrors::VERIFY_NOT_SIGNED)
  76. #define NS_ERROR_CMS_VERIFY_NO_CONTENT_INFO \
  77.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  78.                             nsICMSMessageErrors::VERIFY_NO_CONTENT_INFO)
  79. #define NS_ERROR_CMS_VERIFY_BAD_DIGEST \
  80.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  81.                             nsICMSMessageErrors::VERIFY_BAD_DIGEST)
  82. #define NS_ERROR_CMS_VERIFY_NOCERT \
  83.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  84.                             nsICMSMessageErrors::VERIFY_NOCERT)
  85. #define NS_ERROR_CMS_VERIFY_UNTRUSTED \
  86.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  87.                             nsICMSMessageErrors::VERIFY_UNTRUSTED)
  88. #define NS_ERROR_CMS_VERIFY_ERROR_UNVERIFIED \
  89.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  90.                             nsICMSMessageErrors::VERIFY_ERROR_UNVERIFIED)
  91. #define NS_ERROR_CMS_VERIFY_ERROR_PROCESSING \
  92.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  93.                             nsICMSMessageErrors::VERIFY_ERROR_PROCESSING)
  94. #define NS_ERROR_CMS_VERIFY_BAD_SIGNATURE \
  95.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  96.                             nsICMSMessageErrors::VERIFY_BAD_SIGNATURE)
  97. #define NS_ERROR_CMS_VERIFY_DIGEST_MISMATCH \
  98.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  99.                             nsICMSMessageErrors::VERIFY_DIGEST_MISMATCH)
  100. #define NS_ERROR_CMS_VERIFY_UNKNOWN_ALGO \
  101.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  102.                             nsICMSMessageErrors::VERIFY_UNKNOWN_ALGO)
  103. #define NS_ERROR_CMS_VERIFY_UNSUPPORTED_ALGO \
  104.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  105.                             nsICMSMessageErrors::VERIFY_UNSUPPORTED_ALGO)
  106. #define NS_ERROR_CMS_VERIFY_MALFORMED_SIGNATURE \
  107.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  108.                             nsICMSMessageErrors::VERIFY_MALFORMED_SIGNATURE)
  109. #define NS_ERROR_CMS_VERIFY_HEADER_MISMATCH \
  110.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  111.                             nsICMSMessageErrors::VERIFY_HEADER_MISMATCH)
  112. #define NS_ERROR_CMS_VERIFY_NOT_YET_ATTEMPTED \
  113.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  114.                             nsICMSMessageErrors::VERIFY_NOT_YET_ATTEMPTED)
  115. #define NS_ERROR_CMS_VERIFY_CERT_WITHOUT_ADDRESS \
  116.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  117.                             nsICMSMessageErrors::VERIFY_CERT_WITHOUT_ADDRESS)
  118. #define NS_ERROR_CMS_ENCRYPT_NO_BULK_ALG \
  119.   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, \
  120.                             nsICMSMessageErrors::ENCRYPT_NO_BULK_ALG)
  121. %}
  122.